package cn.rcth.business.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class QueryObject {

    private int pageSize = 5;//每页数据

    private int currentPage = 1;//当前页

    public String getKeyword(){
        return StringUtils.isEmpty(keyword)? null : keyword;
    }

    private String keyword;//用户名
    public int getStart(){
        return (currentPage - 1 ) * pageSize;
    }
}
